package com.woniuxy.controller;

import com.woniuxy.entity.dto.NursePatientDTO;
import com.woniuxy.service.NursePatientService;
import com.woniuxy.util.PageParam;
import com.woniuxy.util.ResponseData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/nursepatient")
public class NursePatientController {
    @Autowired
    NursePatientService nursePatientService;

    @GetMapping("/queryselect")
    public ResponseData querySelect(){
        return nursePatientService.querySelect();
    }

    @PostMapping("/queryhzlist")
    public ResponseData queryHzList(@RequestBody PageParam<NursePatientDTO> pageParam){
        return nursePatientService.queryHzList(pageParam);
    }

}
